<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- xxx 
        <!-- xx -> 
        -->
    <div id="app"></div>
    <script src="../../packages/vue/dist/vue.global.js"></script>
    <script>
      const { createApp, ref } = Vue

      const App = {
        setup() {
          const count = ref(100)
          const add = () => count.value++
          return {
            count,
            add
          }
        },
        // template: `<h1 id='value></h1>`
        // template:  <!-- 2111 --> `<h1 .id.a.a.c='count' @click="add">{{count}}</h1>`
        // template: ` <!-- <!-- 2111 -> 2111 --> <h1 @click="add">{{count}}</h1>`
        // template: ` <!DOCTYPE html> <h1 @click="add">{{count}}</h1>`
        // template: ` <![CDATA[ 我是cDATa ]]`
        template: ` 
        111
        <h1 @click="add"> 111
           <div/> 
           {{count}}</h1>
        222
        
        `
      }

      createApp(App).mount('#app')
    </script>
  </body>
</html>
